PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Menu Manager >

Mac OS 8.5 Menu Manager Reference


SetMenuFont

Sets the font to be used in a menu.

pascal OSStatus SetMenuFont (
                     MenuHandle menu,
                     SInt16 inFontID,
                     UInt16 inFontSize);
menu
A value of type MenuHandle . Pass a handle to the menu whose font is to be set.
inFontID
A signed 16-bit integer. Pass the font family ID for the font to be used. Pass 0 to use the current system font. See Inside Macintosh: Text for a discussion of font family IDs.
inFontSize
An unsigned 16-bit integer. Pass a value identifying the size in points of the font to be used. Valid font size values range from 9 to 24 points, inclusive. Pass 0 to use the font size of the current system font.
function result
A result code. See Result Codes for the Mac OS 8.5 Menu Manager .

DISCUSSION

Your application may use the SetMenuFont function to set the font for an individual menu, such as a pop-up menu.


VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. — (Last Updated 19 Jan 99)